package com.longcai.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.longcai.entity.order.ClyjGoodsOrderDetails;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.LinkedList;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商品订单表 Mapper 接口
 * </p>
 *
 * @author ZJ
 * @since 2019-04-19
 */
@Repository
@Mapper
public interface ClyjGoodsOrderDetailsMapper extends BaseMapper {

    int insertBatch(LinkedList<ClyjGoodsOrderDetails> clyjGoodsOrderDetails);

    int insertSelective(ClyjGoodsOrderDetails clyjGoodsOrderDetails);

    ClyjGoodsOrderDetails selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ClyjGoodsOrderDetails clyjGoodsOrderDetails);

    int updateByPrimaryKey(ClyjGoodsOrderDetails clyjGoodsOrderDetails);

    List<ClyjGoodsOrderDetails> selectByUserId(String userId);

    int selectCountByShopId(String shipId);

    List<ClyjGoodsOrderDetails> selectOrderListToPage(Map map);

    ClyjGoodsOrderDetails selectBytradeNo(String tradeNo);

    int updateOrder(Map map);

    void updateBypTradeNo(Map map);
}